#!/usr/bin/env sh
if [ -f /var/run/vibrateme/pid ] ; then
    echo "Stopping vibrateme Daemon"
    echo `cat /var/run/vibrateme/pid`
    kill `cat /var/run/vibrateme/pid`
    echo "done"

    rm /var/run/vibrateme/pid
    rmdir /var/run/vibrateme
fi

if [ -f /tmp/vibrateme.log ] ; then
    echo "Removing log file"
    rm /tmp/vibrateme.log
    echo "done"
fi

